package com.ktjy.test;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import sz.cn.printer.Printer;

public class Main {
    @Test
    public void test() {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        Printer printer = (Printer) context.getBean("printer");

        printer.print("傻琦在某一天差一点饿死在街头");
    }
}
